Dart.PowerTCP.EmailValidation Namespace > TcpStream Class > Read Method : Read(Byte[],Int32,Int32) Method |
Reads at least one byte of data from the stream and copies it into the provided buffer.
[Visual Basic]
Overloads Overrides Public Function Read( _
ByVal buffer() As Byte, _
ByVal offset As Integer, _
ByVal size As Integer _
) As Integer
The total number of bytes read into the buffer.
Exception | Description |
---|---|
IOException | Thrown when the stream is not Readable. |
#ctor | Thrown when the receiving buffer is null. |
#ctor | Thrown when the offset is less than zero or when size is less than or equal to zero. |
#ctor | Thrown when the (offset + size) > buffer.Length. |
This is the standard method to use when reading a stream synchronously.
The return value may be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream has been reached. Applications must check this value to know how many bytes were read into the buffer.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
TcpStream Class | TcpStream Members | Overload List
Send comments on this topic.
Documentation version 1.0.3.0.
© 2008 Dart Communications. All rights reserved.